classdef experiment
    properties
        UID
        stims
        population
    end
    methods
        function e = experiment(stims,pop)
            if ~isVectorOfType(stims,'stim')
                error('experiment:wrongType','stims need to be cell array of stims');
            end
            e.stims = stims;
            if ~isa(pop,'population')
                error('experiment:wrongType','pop needs to be a population');
            end
            e.population = pop;
        end
        
        function out = run(e,dt)
            if ~exist('dt','var')||isempty(dt)
                dt = 0.01; %10 ms
            end
            
            % what is the length of out going to be?
            temp = cell(1,length(e.stims));
            for i = 1:length(e.stims)
                temp{i} = splitDuration(e.stims{i},dt);
            end
            for i = 1:length(e.stims) % loop through the stims
                
            end
        end
    end
end